<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加部门</title>
<script type="text/javascript" src="<%=path%>/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
	function checkinput() {
		var dtName = $("#dtName").val();
		if ($.trim(dtName) == "") {
			alert("部门名称不能为空");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<center>
		<jsp:include page="../top.jsp" flush="true"></jsp:include>
		<table width="800" height="48" border="0" cellpadding="0"
			cellspacing="0" background="<%=path%>/images/center1.jpg">
			<tr>
				<td valign="top"><table width="494">
						<tr>
							<td width="45" height="25"></td>
							<td width="437" valign="bottom"><a
								href="<%=path%>/admin/function"><b>主页</b></a>&gt;<a
								href="<%=path%>/depart/dep_f"><b>部门管理</b></a>&gt;<font
								color="#FF0000">添加部门信息</font></td>
						</tr>
					</table></td>
			</tr>
		</table>
		<form action="<%=path%>/depart/add_depart" method="post"
			onsubmit="return checkinput()">
			<table width="800" height="340" border="0" cellpadding="0"
				cellspacing="0" background="<%=path%>/images/center2.jpg">
				<tr>
					<td class="style4" height="40"><div align="center">部门名称:</div></td>
					<td><input height="40" width="600" type="text" name="dtName"
						id="dtName"><span style="color: red;">*</span></td>
				</tr>
				<tr>
					<td class="style4" height="40"><div align="center">创建时间:</div></td>
					<td><input height="40" width="600" type="text"
						name="dtCreatetime"><span style="font-size: 12px">格式：yyyy-MM-dd</span></td>
				</tr>
				<tr>
					<td class="style4" height="40"><div align="center">备注:</div></td>
					<td><textarea name="dtBz" cols="22" rows="4"></textarea></td>
				</tr>
				<tr>
					<td class="style4" height="40"><div align="center">操作</div></td>
					<td><input type="submit" value="提交">&nbsp;<input
						type="reset" value="重置"></td>
				</tr>
			</table>
		</form>
		<jsp:include page="../down.jsp" flush="true" />
	</center>
</body>
</html>